<style type="text/css">
    .dropdown-menu {
        max-height: 303px;
    }

    .merged_color {
        color: red;
        background-color: #dedede;
    }

    p {
        height: 15px;
    }

    .GA {

        background-color: #b1b1b1;
    }

    .GB {
        background-color: #b1b1b1;
    }

    .DOING {
        background-color: #B0E0E6;
    }

    .OUT_OF_SERVICE {
        background-color: red;
    }

    .GNONE {
        background-color: #00BB00;
    }

    .READY {
        background-color: #B15BFF;
    }

    .GAMsg {

        color: #b1b1b1;
    }

    .GBMsg {
        color: #b1b1b1;
    }

    .DOINGMsg {
        color: #B0E0E6;
    }

    .OUT_OF_SERVICEMsg {
        color: red;
    }

    .GNONEMsg {
        color: #00BB00;
    }

    .READYMsg {
        color: #B15BFF;
    }

    /*橙色FF9224*/


</style>
<!-- region -->
<section class="content">
    <div class="row">
        <div class="col-xs-12">
            <div class="box">
                <div class="box-body">
                    <div class="container-fluid">
                        <div class="row-fluid">
                            <span> 当前环境：</span>
                            <select ng-model="info.env_name" ng-change="title(0,type)">
                                <option ng-repeat="env in info.env" value="{{env}}">{{env}}</option>
                            </select>
                            <span style="color: red;padding-left: 5%;"
                                  ng-show="info.env_name == 'online' && !info.isAuthorize">生产环境需要授权后才能进行操作</span>
                            <br>
                            <br>
                            <div class="span12">
                                <ul class="nav nav-tabs">
                                    <li class="" ng-class="{true:'active',false:''}[info.index==0]">
                                        <a href="javascript:void(0)"
                                           data-toggle="tab" ng-click="title(0,type)">
                                            切换视图
                                        </a>
                                    </li>
                                    <li class="" ng-class="{true:'active',false:''}[info.index==1]">
                                        <a href="javascript:void(0)"
                                           data-toggle="tab" ng-click="title(1,type)">
                                            详细视图
                                        </a>
                                    </li>
                                    <li class="" ng-class="{true:'active',false:''}[info.index==2]">
                                        <a href="javascript:void(0)"
                                           data-toggle="tab" ng-click="title(2,type)">
                                            全环境资源校验
                                        </a>
                                    </li>
                                </ul>

                                <div class="row">
                                    <div class="col-xs-12">
                                        <div ng-if="info.index == '0'" class="box-body" style="margin-left: 18px;">
                                            <div class="row clearfix">
                                                <ol style="width: 50%;">
                                                    <li style="border-color:#00bb00;">
                                                        灰色表示当前分组已经切换到灰度状态
                                                    </li>
                                                    <li>
                                                        绿色表示当前分组已经切换到生产状态
                                                    </li>
                                                    <li>
                                                        红色表示当前分组在在切换过程中出现异常
                                                    </li>
                                                    <li>
                                                        紫色表示当前分组校验正常,可以切换
                                                    </li>
                                                    <li style="color: red;">
                                                        开始操作A/B组前,需要进行资源校验,校验成功后才能就行操作.
                                                    </li>
                                                    <li style="color: red;">
                                                        重启应用后,需要执行校验,检查应用状态
                                                    </li>
                                                </ol>
                                            </div>

                                            <ul class="nav nav-tabs">
                                                <li class="" ng-repeat="reg in info.zones "
                                                    ng-if="reg.parent_code==null"
                                                    ng-class="{true:'active',false:''}[info.selectZone.zone_code==reg.zone_code]">
                                                    <a href="javascript:void(0)" data-toggle="tab"
                                                       ng-click="regionTitle(reg)">
                                                        {{reg.zone_title}}
                                                    </a>
                                                </li>
                                            </ul>
                                            <div class="col-md-12 column" ng-if="info.entrances.length!=0">
                                                <blockquote>
                                                    <p>
                                                        <span ng-repeat="i in info.entrances"><span
                                                                ng-repeat="x in info.allTypes"
                                                                ng-if="i.type==x.type"><b>{{x.name}}:</b></span><span
                                                                ng-show="showMsg(i)" ng-class="i.class">{{i.msg}}</span>.</span>
                                                    </p>
                                                </blockquote>
                                            </div>
                                            <div class="container">
                                                <div class="row clearfix">
                                                    <div class="col-md-3 column">
                                                    </div>
                                                    <div class="col-md-6 column">
                                                        <div ng-if="info.entrances.length!=0">
                                                            <button class="btn btn-info"
                                                                    ng-click="check()">
                                                                资源校验
                                                            </button>
                                                        </div>
                                                        <div class="row clearfix" ng-repeat="i in info.entrances">
                                                            <div class="text-center" style="margin-top:20px;">
                                                                        <span style="font-size: 30px; height: 50px;"
                                                                              ng-repeat="x in info.allTypes"
                                                                              ng-if="i.type==x.type">
                                                                            {{x.name}}
                                                                        </span>
                                                                <p>
                                                                    <span style="color: red;font-size:20px;"
                                                                          ng-if="i.is_overtime == 0"><b>操作已经超时, 建议优先恢复生产流量, 然后检查日志</b></span>
                                                                </p>
                                                            </div>
                                                            <div class="col-md-6 column">
                                                                <div ng-class="showStatus('A',i)"
                                                                     style="width:293px;height:130px;box-shadow: 6px 6px 6px rgba(0,0,0);">
                                                                    <div style="text-align:center;line-height: 50px;">
                                                                        <p style="font-size: 25px;">A组</p>
                                                                        <p><span>{{i.update_time|date:'yyyy-MM-dd HH:mm:ss':'UTC'}}</span>
                                                                        </p>
                                                                        <p>
                                                                            <span ng-if="info.selectZone.expect_status=='READY' || info.selectZone.expect_status=='GA' || info.selectZone.expect_status=='GNONE'">
                                                                                <a ng-if="i.current_status=='OUT_OF_SERVICE'"
                                                                                   href="javascript:void(0)"
                                                                                   ng-click="showError(i,'A')">{{i.msg}}。请点击查看异常详情</a>
                                                                                <span ng-if="i.current_status!='OUT_OF_SERVICE'">{{i.msg}}</span>
                                                                            </span>
                                                                        </p>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="col-md-6 column">
                                                                <div ng-class="showStatus('B',i)"
                                                                     style="width:277px;height:130px;box-shadow: 6px 6px 6px rgba(0,0,0);margin-left: 2%;">
                                                                    <div style="text-align:center;line-height: 50px;">
                                                                        <p style="font-size: 25px;">B组</p>
                                                                        <p><span>{{i.update_time|date:'yyyy-MM-dd HH:mm:ss':'UTC'}}</span>
                                                                        </p>
                                                                        <p>
                                                                            <span ng-if="info.selectZone.expect_status=='READY' || info.selectZone.expect_status=='GB' || info.selectZone.expect_status=='GNONE'">
                                                                                <a ng-if="i.current_status=='OUT_OF_SERVICE'"
                                                                                   href="javascript:void(0)"
                                                                                   ng-click="showError(i,'B')">{{i.msg}}。请点击查看异常详情</a>
                                                                                <span ng-if="i.current_status!='OUT_OF_SERVICE'">{{i.msg}}</span>
                                                                            </span>
                                                                        </p>
                                                                    </div>
                                                                </div>
                                                            </div>

                                                            <div class="col-md-4 column" style="margin-top:8px;">
                                                                <button class="btn btn-info"
                                                                        ng-click="Operation(i,'GA')">
                                                                    A组进入灰度
                                                                </button>
                                                            </div>
                                                            <div class="col-md-4 text-center" style="margin-top:8px;">
                                                                <button class="btn btn-info"
                                                                        ng-click="Operation(i,'GNONE');"
                                                                        >
                                                                    取消灰度
                                                                </button>
                                                            </div>
                                                            <div class="col-md-4 text-right" style="margin-top:8px;">
                                                                <button class="btn btn-info"
                                                                        ng-click="Operation(i,'GB');"
                                                                        >
                                                                    B组进入灰度
                                                                </button>
                                                            </div>

                                                        </div>

                                                        <div class="col-md-3 column">
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div ng-if="info.index == '1'" class="box-body">
                                            <div class="box-header">
                                                <div class="col-xs-12">
                                                    <div class="btn-group" ng-repeat="zone in info.zones ">
                                                        <label class="btn btn-primary" ng-if="zone.parent_code==null"
                                                               ng-model="zone.check" ng-change="selectParentZone();"
                                                               uib-btn-checkbox>{{zone.zone_title}}</label>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="box-header" ng-show="info.child_zones.length!=0">
                                                <div class="col-xs-12">
                                                    <div class="btn-group" ng-repeat="zone in info.child_zones">
                                                        <label class="btn btn-primary" ng-model="zone.check"
                                                               ng-change="selectChildZone();"
                                                               uib-btn-checkbox>{{zone.zone_title}}</label>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="box-header">
                                                <div class="col-xs-3">
                                                    <div class="btn-group" ng-repeat="type in info.allTypes">
                                                        <label class="btn btn-primary" ng-model="type.check"
                                                               ng-change="clickType();"
                                                               uib-btn-checkbox>{{type.type}}</label>
                                                    </div>
                                                </div>
                                                <div class="col-xs-3">
                                                    <input type="search" ng-model="filter.type" style="width: 450px;"
                                                           placeholder="Search Name Here..."/>
                                                </div>
                                                <div style="float:right;">
                                                    <i class="glyphicon glyphicon-lock" popover-placement="left"
                                                       uib-popover="切换单独流量" popover-trigger="mouseenter" role="button"
                                                       tabindex="0" aria-hidden="true"></i>
                                                </div>
                                            </div>
                                            <div class="box-body" style=" ">
                                                <table class="table table-hover table-bordered text-center">
                                                    <thead>
                                                    <tr>
                                                        <th style="width: 10%;">系统名称</th>
                                                        <th style="width: 10%;">区域</th>
                                                        <th style="width: 12%;">类型</th>
                                                        <th style="width: 5%">分组</th>
                                                        <th>ip地址</th>
                                                        <th>切换状态</th>
                                                        <th>操作</th>
                                                    </tr>
                                                    </thead>
                                                    <tbody ng-repeat="i in info.entrances|filter:filter">
                                                    <tr>
                                                        <td style="text-align:left;"><b>{{i.type}}</b></td>
                                                        <td style="text-align:left;" ng-repeat="reg in info.zones "
                                                            ng-if="reg.zone_code==i.zone_code"><b>
                                                            {{reg.zone_title}}</b></td>
                                                        <td style="text-align:left;"><b>{{i.type}}</b></td>
                                                        <td style="text-align:left;">-</td>
                                                        <td style="text-align:left;">
                                                            <span ng-hide="i.type == 'haproxy' || i.type=='uschedule'">-</span>
                                                            <span ng-show="i.type == 'haproxy' || i.type=='uschedule'">{{i.hosts}}</span>
                                                        </td>
                                                        <td style="text-align:left;">-</td>
                                                        <td style="text-align:left;">操作</td>
                                                    </tr>
                                                    <tr ng-if="i.apps.length > 0" ng-repeat="app in i.apps">
                                                        <td>{{app.app_name}}</td>
                                                        <td ng-repeat="reg in info.zones "
                                                            ng-if="reg.zone_code==app.zone_code">{{reg.zone_title}}
                                                        </td>
                                                        <td>{{app.app_type}}</td>
                                                        <td>{{app.group}}组</td>
                                                        <td>
                                                            <span style="color: #FF9224;"
                                                                  ng-if="(app.current_status=='GNONE')">{{app.host}}(生产)</span>
                                                            <span style="color: #FF9224;"
                                                                  ng-if="(app.group=='B' && app.current_status=='GA')">{{app.host}}(生产)</span>
                                                            <span style="color: #FF9224;"
                                                                  ng-if="(app.group=='A' && app.current_status=='GB')">{{app.host}}(生产)</span>

                                                            <span style="color: #d0d0d0;"
                                                                  ng-if="(app.current_status=='GA' && app.group=='A')">{{app.host}}(灰度)</span>
                                                            <span style="color: #d0d0d0;"
                                                                  ng-if="(app.current_status=='GB' && app.group=='B')">{{app.host}}(灰度)</span>

                                                            <span style="color: #FF2D2D;"
                                                                  ng-if="(app.current_status=='OUT_OF_SERVICE' && app.group=='A')">{{app.host}}(异常)</span>
                                                            <span style="color: #FF2D2D;"
                                                                  ng-if="(app.current_status=='OUT_OF_SERVICE' && app.group=='B')">{{app.host}}(异常)</span>

                                                            <span style="color: #FF2D2D;"
                                                                  ng-if="(app.current_status=='UNKNOWN' && app.group=='A')">{{app.host}}(异常)</span>
                                                            <span style="color: #FF2D2D;"
                                                                  ng-if="(app.current_status=='UNKNOWN' && app.group=='B')">{{app.host}}(异常)</span>

                                                            <span style="color: #B0E0E6;"
                                                                  ng-if="(app.current_status=='DOING' && app.group=='A')">{{app.host}}(切换中)</span>
                                                            <span style="color: #B0E0E6;"
                                                                  ng-if="(app.current_status=='DOING' && app.group=='B')">{{app.host}}(切换中)</span>


                                                            <span style="float:right;"
                                                                  ng-if="(app.current_status=='OUT_OF_SERVICE' && app.group=='A')">
                                                                    <i style="width: 40px;height: 15px;vertical-align:baseline; color: red;"
                                                                       class="glyphicon glyphicon-warning-sign ng-scope"
                                                                       uib-popover="当前应用出现异常，点击查看异常详情"
                                                                       popover-trigger="mouseenter"
                                                                       ng-click="selectError(app)"></i></span>
                                                            <span style="float:right;"
                                                                  ng-if="(app.current_status=='OUT_OF_SERVICE' && app.group=='B')"><i
                                                                    style="width: 40px;height: 15px;vertical-align:baseline; color: red;"
                                                                    class="glyphicon glyphicon-warning-sign ng-scope"
                                                                    uib-popover="当前应用出现异常，点击查看异常详情"
                                                                    popover-trigger="mouseenter"
                                                                    ng-click="selectError(app)"></i></span>


                                                            <span style="float:right;"
                                                                  ng-if="(app.current_status=='UNKNOWN' && app.group=='A')">
                                                                    <i style="width: 40px;height: 15px;vertical-align:baseline; color: red;"
                                                                       class="glyphicon glyphicon-warning-sign ng-scope"
                                                                       uib-popover="当前应用出现异常，点击查看异常详情"
                                                                       popover-trigger="mouseenter"
                                                                       ng-click="selectError(app)"></i></span>
                                                            <span style="float:right;"
                                                                  ng-if="(app.current_status=='UNKNOWN' && app.group=='B')"><i
                                                                    style="width: 40px;height: 15px;vertical-align:baseline; color: red;"
                                                                    class="glyphicon glyphicon-warning-sign ng-scope"
                                                                    uib-popover="当前应用出现异常，点击查看异常详情"
                                                                    popover-trigger="mouseenter"
                                                                    ng-click="selectError(app)"></i></span>


                                                        </td>
                                                        <td>
                                                            <!-- <span style="color: #d0d0d0;" ng-if="app.group=='A' && app.expect_status=='GA'">灰度</span>
                                                            <span style="color: #d0d0d0;" ng-if="app.group=='B' && app.expect_status=='GB'">灰度</span>
                                                            <span style="color: #FF9224;" ng-if="app.expect_status=='GNONE'">生产</span>
                                                            <span style="color: #FF9224;" ng-if="app.group=='A' && app.expect_status=='GB'">生产</span>
                                                            <span style="color: #FF9224;" ng-if="app.group=='B' && app.expect_status=='GA'">生产</span> -->
                                                        </td>
                                                        <td><!--
                                                                        <a href="javascript:void(0)" ng-click="Operation(app,'A','GA')">灰度A</a>/
                                                                        <a href="javascript:void(0)" ng-click="Operation(app,'A','GNONE')">生产A</a>/
                                                                        <a href="javascript:void(0)" ng-click="Operation(app,'B','GB')">灰度B</a>/
                                                                        <a href="javascript:void(0)" ng-click="Operation(app,'B','GNONE')">生产B</a> -->
                                                        </td>
                                                    </tr>
                                                    </tbody>
                                                </table>
                                            </div>
                                        </div>

                                        <!-- 校验环境内所有资源 -->
                                        <div ng-if="info.index == '2'" class="box-body" style="margin-left: 18px;">
                                            <button class="btn btn-info" ng-disabled="!btnPower()"
                                                    ng-click="checkAllZone()">
                                                资源校验
                                            </button>
                                            <br>
                                            <br>
                                            <uib-accordion close-others="false">
                                                <uib-accordion-group ng-repeat="zone in info.zones"
                                                                     ng-if="zone.parent_code == null && zone.expect_status == 'READY'"
                                                                     heading="{{zone.zone_title}}异常应用列表" is-open="true">
                                                    <span ng-if="!zone.checkStatus"
                                                          style="color:red;">{{zone.checkMsg}}</span>
                                                    <table class="table table-hover table-bordered"
                                                           ng-if="zone.checkStatus">
                                                        <thead>
                                                        <tr>
                                                            <th>
                                                                名称
                                                            </th>
                                                            <th>
                                                                类型
                                                            </th>
                                                            <th>
                                                                ip
                                                            </th>
                                                            <th>
                                                                端口
                                                            </th>
                                                            <th>
                                                                jmx端口
                                                            </th>
                                                            <th>
                                                                agent端口
                                                            </th>
                                                            <th>
                                                                分组
                                                            </th>
                                                            <th>
                                                                期望状态
                                                            </th>
                                                            <th>
                                                                当前状态
                                                            </th>
                                                            <th>
                                                                错误描述
                                                            </th>
                                                        </tr>
                                                        </thead>
                                                        <tbody>
                                                        <tr ng-repeat="x in info.errorAppList "
                                                            ng-if="x.zone_code == zone.zone_code">
                                                            <td>
                                                                {{x.app_name}}
                                                            </td>
                                                            <td>
                                                                {{x.entrance_type}}
                                                            </td>
                                                            <td>
                                                                {{x.host}}
                                                            </td>
                                                            <td>
                                                                {{x.http_port}}
                                                            </td>
                                                            <td>
                                                                {{x.jmx_port}}
                                                            </td>
                                                            <td>
                                                                {{x.agent_port}}
                                                            </td>
                                                            <td>
                                                                {{x.group}}
                                                            </td>
                                                            <td>
                                                                {{x.expect_status}}
                                                            </td>
                                                            <td>
                                                                {{x.current_status}}
                                                            </td>
                                                            <td>
                                                                <i ng-if="x.current_status == 'OUT_OF_SERVICE'"
                                                                   style="width: 40px;height: 15px;vertical-align:baseline; color: red;"
                                                                   class="glyphicon glyphicon-warning-sign ng-scope"
                                                                   uib-popover="当前应用出现异常，点击查看异常详情"
                                                                   popover-placement="left"
                                                                   popover-trigger="mouseenter"
                                                                   ng-click="selectError(x)"></i></td>
                                                        </tr>
                                                        <tr ng-repeat="x in info.errorEntranceList "
                                                            ng-if="x.zone_code == zone.zone_code && x.type != 'jmx' && x.type != 'hosts'">
                                                            <td>
                                                                {{x.type}}
                                                            </td>
                                                            <td>
                                                                {{x.type}}
                                                            </td>
                                                            <td>
                                                                <span ng-if="x.type == 'haproxy' || x.type == 'uschedule'">
                                                                    {{x.hosts|split_filter:':':0}}
                                                                </span>
                                                                <span ng-show="x.type != 'haproxy' && x.type != 'uschedule'">
                                                                    {{x.hosts}}
                                                                </span>
                                                            </td>
                                                            <td>
                                                                <span ng-if="x.type == 'haproxy'||x.type == 'uschedule'">
                                                                    {{x.hosts|split_filter:':':1}}
                                                                </span>
                                                                <span ng-show="x.type != 'haproxy' && x.type != 'elb' && x.type != 'uschedule'">
                                                                    {{x.hosts}}
                                                                </span>
                                                            </td>
                                                            <td>-</td>
                                                            <td>-</td>
                                                            <td>
                                                                {{x.group}}
                                                            </td>
                                                            <td>
                                                                {{x.expect_status}}
                                                            </td>
                                                            <td>
                                                                {{x.current_status}}
                                                            </td>
                                                            <td>
                                                                <i ng-if="x.current_status == 'OUT_OF_SERVICE'"
                                                                   style="width: 40px;height: 15px;vertical-align:baseline; color: red;"
                                                                   class="glyphicon glyphicon-warning-sign ng-scope"
                                                                   uib-popover="当前应用出现异常，点击查看异常详情"
                                                                   popover-placement="left"
                                                                   popover-trigger="mouseenter"
                                                                   ng-click="selectError(x)"></i></td>
                                                        </tr>
                                                        </tbody>
                                                    </table>
                                                </uib-accordion-group>
                                            </uib-accordion>
                                        </div>

                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>


<script type="text/ng-template" id="showError.html">
    <style type="text/css">
        .modal-content {
            width: 1100px;
            right: 250px;
        }
    </style>
    <section class="content">
        <div class="row">
            <div class="col-xs-12">
                <div class="box">
                    <div class="box-header" style="margin-top:1px;">
                        <br>
                        <uib-accordion close-others="false">
                            <uib-accordion-group heading="" is-open="true">
                                <table class="table table-hover table-bordered">
                                    <thead>
                                    <tr>
                                        <th>
                                            名称
                                        </th>
                                        <th>
                                            类型
                                        </th>
                                        <th>
                                            ip
                                        </th>
                                        <th>
                                            端口
                                        </th>
                                        <th>
                                            jmx端口
                                        </th>
                                        <th>
                                            agent端口
                                        </th>
                                        <th>
                                            分组
                                        </th>
                                        <th>
                                            期望状态
                                        </th>
                                        <th>
                                            当前状态
                                        </th>
                                        <th>
                                            错误描述
                                        </th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr ng-repeat="x in info.appList|paging:page.index:page.size">
                                        <td>
                                            <span ng-show="x.app_name != undefined && x.app_name != null">
                                                {{x.app_name}}
                                            </span>
                                            <span ng-hide="x.app_name != undefined && x.app_name != null">
                                                {{x.type}}
                                            </span>
                                        </td>
                                        <td>
                                            <span ng-show="x.app_name != undefined && x.app_name != null">
                                                {{x.entrance_type}}
                                            </span>
                                            <span ng-hide="x.app_name != undefined && x.app_name != null">
                                                {{x.type}}
                                            </span>
                                        </td>
                                        <td>
                                            <span ng-show="x.app_name != undefined && x.app_name != null">
                                                {{x.host}}
                                            </span>
                                            <span ng-hide="x.app_name != undefined && x.app_name != null">
                                                <span ng-if="x.type == 'haproxy' || x.type == 'uschedule'">
                                                    {{x.hosts|split_filter:':':0}}
                                                </span>
                                                <span ng-show="x.type != 'haproxy' && x.type != 'uschedule'">
                                                    {{x.hosts}}
                                                </span>
                                            </span>
                                        </td>
                                        <td>
                                            <span ng-show="x.app_name != undefined && x.app_name != null">
                                                {{x.http_port}}
                                            </span>
                                            <span ng-hide="x.app_name != undefined && x.app_name != null">
                                                <span ng-if="x.type == 'haproxy'||x.type == 'uschedule'">
                                                    {{x.hosts|split_filter:':':1}}
                                                </span>
                                                <span ng-show="x.type != 'haproxy' && x.type != 'elb' && x.type != 'uschedule'">
                                                    {{x.hosts}}
                                                </span>
                                            </span>
                                        </td>
                                        <td>
                                            <span ng-show="x.app_name != undefined && x.app_name != null">
                                                {{x.jmx_port}}
                                            </span>
                                        </td>
                                        <td>
                                            <span ng-show="x.app_name != undefined && x.app_name != null">
                                                {{x.agent_port}}
                                            </span>
                                        </td>
                                        <td>
                                            {{x.group}}
                                        </td>
                                        <td>
                                            {{x.expect_status}}
                                        </td>
                                        <td>
                                            {{x.current_status}}
                                        </td>
                                        <td>
                                            <i ng-if="x.current_status == 'OUT_OF_SERVICE'"
                                               style="width: 40px;height: 15px;vertical-align:baseline; color: red;"
                                               class="glyphicon glyphicon-warning-sign ng-scope"
                                               uib-popover="当前应用出现异常，点击查看异常详情"
                                               popover-placement="left"
                                               popover-trigger="mouseenter"
                                               ng-click="selectError(x)"></i></td>
                                    </tr>
                                    </tbody>
                                </table>
                                <uib-pagination total-items="info.appList|filter:filter|size" ng-model="page.index"
                                                max-size="5"
                                                previous-text="上一页"
                                                next-text="下一页"
                                                first-text="首页"
                                                last-text="尾页"

                                                items-per-page="page.size"

                                                class="pagination-sm pull-right" boundary-links="true">

                                </uib-pagination>
                            </uib-accordion-group>
                        </uib-accordion>

                        <div class="modal-footer">
                            <button class="btn btn-warning" type="button" ng-click="cancel()">关闭</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
</script>

<script type="text/ng-template" id="error.html">
    <style type="text/css">
        .modal-content {
            width: 1000px;
            right: 250px;
        }
    </style>
    <section class="content">
        <div class="row">
            <div class="col-xs-12">
                <div class="box">
                    <div class="box-header" style="margin-top:1px;">
                        <br>
                        <uib-accordion close-others="false">
                            <uib-accordion-group heading="应用异常" is-open="true">
                                <textarea ng-disabled=true style="width: 930px;height: 360px;">{{info.msg}}
                                </textarea>
                            </uib-accordion-group>
                        </uib-accordion>
                        <div class="modal-footer">

                            <button class="btn btn-warning" type="button" ng-click="cancel()">关闭</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
</script>